package cn.wolfcode._02_ioc;

import org.springframework.beans.factory.FactoryBean;

public class Cat2FactoryBean implements FactoryBean<Cat2> {

    //创建对象的方法 给spring用

    @Override
    public Cat2 getObject() throws Exception {
        Cat2 cat2 = new Cat2();
        return cat2;
    }


    @Override
    public Class<?> getObjectType() {

        return Cat2.class;
    }
}
